﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;

namespace MET.Web.Models
{
    public class User
    {
        public int id { get; set; }
        [Required]
        public string Name { get; set; }
        [Required]
        public DateTime BronthDay { get; set; }
        public string Address { get; set; }
    }
    public class Login
    {
        public int Id { get; set; }
        public string LoginName { get; set; }
        public string LoginPassword { get; set; }
    }
    public class METDBContext : DbContext
    {
        public DbSet<User> User { get; set; }
        public DbSet<Login> Login { get; set; }
    }
}